package com.gong.DesignPattern.factoryPattern.factoryMethod;

import com.gong.DesignPattern.factoryPattern.simpleFactory.Phone;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/8 0008 9:04
 */
public class Test {

    public static void main(String[] args) {
        IphoneFactory iphoneFactory = new IphoneFactory();
        XiaomiFactory xiaomiFactory = new XiaomiFactory();

        Phone iphone = iphoneFactory.created();
        Phone xiaomi = xiaomiFactory.created();

        iphone.makePhone();
        xiaomi.makePhone();
    }
}
